const jwt = require('jsonwebtoken');

const createToken = (params) => {
  const jwtToken = `Bearer ${jwt.sign(params,'wjx99', {
    expiresIn: 36000
  })}`;
  return jwtToken;
};

module.exports = createToken;
